/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.core.service.jdbc;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

import org.apache.commons.logging.*;

/**
 * 
 * @author 刘威
 */
public class DBHelper {

	private static Log log = LogFactory.getLog(DBHelper.class);

	public String getField(String field) {
		String ret = "";
		String type = field.substring(field.length() - 1, field.length());
		if (type.equals(SQLElement.TYPE_DATE)
				|| type.equals(SQLElement.TYPE_NUMBER)
				|| type.equals(SQLElement.TYPE_STRING)) {

			ret = field.substring(0, field.length() - 1);
		} else {
			ret = field;
		}

		return ret;
	}
}
